using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Collections;
using System.Collections.Generic;
namespace Kunlun.Models
{
	[Table("Helptype")]
	public class Helptype
	{
		[Key]
		[DisplayName("帮助类型ID")]
		public int Tid { get; set; }

		[Required(ErrorMessage = "类型名称不能空")]
		[DisplayName("类型名称")]
		public string TypeName { get; set; }

		[DisplayName("描述")]
		public string Description { get; set; }

		[DisplayName("排序")]
		public int Orders { get; set; }

		[Required(ErrorMessage = "使用状态(false:未审核 true:已审核)不能空")]
		[DisplayName("使用状态(false:未审核 true:已审核)")]
		public bool IsPub { get; set; }

		[DisplayName("等级")]
		public int Sort { get; set; }

		[DisplayName("添加时间")]
		public DateTime BeginDate { get; set; }

		[DisplayName("最后修改时间")]
		public DateTime LastUpdateDate { get; set; }

		[ForeignKey("Tid")]
		public virtual ICollection<Help> Help { get; set; }

	}
}
